home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / win_utl2 / wasted16.zip / WASTED16.DOC < prev   
Text File  |  1996-05-17  |  4KB  |  98 lines

  1. WASTED.EXE v1.6 (05/17/1996) - written by Tim Jones
  2.  
  3.  Purpose:
  4.    WASTED was written to quickly traverse a harddrive and report
  5.    how much diskspace each directory really uses based upon the
  6.    cluster size.
  7.  Output:
  8.    dirbytes  usedbytes  usedbytes-dirbytes  percentage
  9.    where percentage is based upon the report method used. (see below)
  10.  Syntax:
  11.    WASTED [directory] [parameters]
  12.    where directory is the directory to start at (default=current directory)
  13.  Parameters: (prefix / and - are valid)
  14.    /? = This help text
  15.    /C:n = Sets the cluster size to n (where n > 0)
  16.    /NT  = Turns off the displaying of the Total line (No Totals)
  17.    /P   = Pause between screens
  18.    /R:n = Report using method n
  19.           n=1 = Wasted percentage based upon disk size (default)
  20.           n=2 = Wasted percentage based upon used disk space
  21.  optional parameters may be specified in any order
  22.  
  23. Cluster Sizes:
  24.  When you specify a cluster size which is different from the actual cluster
  25.  size, the program "estimates" how many clusters you would actually have if
  26.  you use the new cluster size.  The new "total disk space" may differ from
  27.  your current total disk space.
  28.  
  29. Report Methods:
  30.  Of all the mail I received, this was the most mentioned.
  31.  At least two schools of thought have risen on the subject of how to represent
  32.  the percentage of wasted space.  The first method bases the percentage upon
  33.  the size of the harddrive.  The second method bases the percentage upon the
  34.  amount of diskspace the files occupy.
  35.  
  36.  Given the following scenario:
  37.     A: is a 1.44M drive (1,457,664 bytes)
  38.     on A: are two files:  A.DAT   513 bytes
  39.                     and:  B.DAT   513 bytes
  40.  
  41.  Using Report Method #1 you get the following:
  42.     Cluster size  :         512
  43.     # of Clusters :        2847
  44.     Est. Disk Size:     1457664
  45.     Directory                   Bytesize   Realsize     Wasted
  46.     A:\                             1026       2048       1022   0.07%
  47.     Total:                          1026       2048       1022   0.07%
  48.  
  49.  Using Report Method #2 you get the following:
  50.     Cluster size  :         512
  51.     # of Clusters :        2847
  52.     Est. Disk Size:     1457664
  53.     Directory                   Bytesize   Realsize     Wasted
  54.     A:\                             1026       2048       1022  49.90%
  55.     Total:                          1026       2048       1022  49.90%
  56.  
  57.  With Method #2, you see that the files are wasting almost half of the space
  58.  which they occupy.  With Method #1, you see that the space being wasted is
  59.  simply a tiny portion of the entire disk.
  60.  
  61.  Using Method #1 a large percentage means a large chunk of disk is being eaten
  62.  by many files in the directory.
  63.  Using Method #2 a large percentage means that there is 1 or more "wasteful"
  64.  files in the directory.
  65.  
  66.  Either method may be specified by using the /R:n parameter.
  67.  
  68. Special Notes:
  69. :I have not tried to run WASTED on a drive, re-partition/format the drive
  70.  with a new cluster size and compare that with the WASTED program.  So don't
  71.  expect the results to be 100% accurate (although it should be close).
  72. :This program does NOT take into account the space used by the File Allocation
  73.  Table.  Each subdirectory consumes at least 1 cluster.  As subdirectories
  74.  become larger, more clusters will be allocated to hold the directory
  75.  information which could have been used for data instead.
  76. :This program does take into account Hidden and System files.
  77. :This program will traverse into Hidden subdirectories.
  78. :The modification history for this program is included in the sourcecode file.
  79.  
  80. This program is FREE and comes with the Pascal sourcecode.  The program
  81. and source may be totally "hacked and butchered" to your hearts content.
  82. I have tried to thoroughly document the sourcecode so that you may be able
  83. to include your own percentage calculations and switch options.
  84.  
  85. Although I have tried to make this program bug free BEFORE releasing it
  86. (what a concept!), I cannot guarantee that it will not totally "hack and 
  87. butcher" your PC.
  88.  
  89. Though WASTED is not updated very often, I always post the latest version
  90. to the SimTel Archives.
  91. ftp://ftp.coast.net/SimTel/msdos/diskutil/
  92.  
  93. I can be contacted via E-mail for questions/suggestions/complaints.
  94. My email address is:
  95. tjones@wpogate.ssc.nasa.gov  (as of 05/17/1996)
  96. John C. Stennis Space Center, Mississippi, USA
  97.  
  98.